package org.demo.base.log;

import java.util.logging.Level;


/**
 *
 */
public class Test {
    public static void main(String[] args) throws ClassNotFoundException {
        //org.apache.log4j.Logger
//        org.apache.log4j.Logger log4jLogger  =  org.apache.log4j.Logger.getLogger(Test. class );
//        log4jLogger.debug( " debug test..." );
//        log4jLogger.error( " error test..." );

        //java.util.logger
        java.util.logging.Logger javaLogger = java.util.logging.Logger.getLogger("1111111");
        javaLogger.log(Level.INFO,"java.util.logging.Logger log...");
        java.util.logging.Logger javaLogger1= java.util.logging.Logger.getLogger("1111111");
        java.util.logging.Logger javaLogger2 = java.util.logging.Logger.getLogger("22222222");

        //org.apache.common.logging
//        org.apache.commons.logging.Log commonsLoggingLog = org.apache.commons.logging.LogFactory.getLog(Test.class);
//        commonsLoggingLog.info("org.apache,common.logging log.......");

        //org.apache.ibatis.logging
        org.apache.ibatis.logging.Log ibatisLog = org.apache.ibatis.logging.LogFactory.getLog(Test.class);
        ibatisLog.debug("org.apache.ibatis.logging.Log ");

        Class<?> aClass = Class.forName("org.apache.log4j.Logger");
        System.out.println(aClass);


    }
}
